/*
 * Description: 系统角色调用后台接口JS
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Dongxu.Ni
 * Date: 2020/03/19 02:57
 */

import { httpPost } from '../../utils/axios-utils'

export function roleListSubordinate(obj, authConfig) {
  return httpPost('/smart-cost/sys/role/listSubordinate', obj, authConfig)
}

export function rolePageListSubordinate(obj, authConfig) {
  return httpPost('/smart-cost/sys/role/pageListSubordinate', obj, authConfig)
}

export function roleListMappingMenu(obj, authConfig) {
  return httpPost('/smart-cost/sys/role/listMappingMenu', obj, authConfig)
}

export function roleAdd(obj, authConfig) {
  return httpPost('/smart-cost/sys/role/add', obj, authConfig)
}

export function roleEdit(obj, authConfig) {
  return httpPost('/smart-cost/sys/role/edit', obj, authConfig)
}

export function roleDelete(obj, authConfig) {
  return httpPost('/smart-cost/sys/role/delete', obj, authConfig)
}
